from building import *

cwd          = GetCurrentDir()
include_path = ['./']    
src          = []

# if GetDepend(['FML_USING_FRAM']):
src += ['drv_fram.c']
# src += ['drv_flash_w25qxx.c']

group = DefineGroup('dirvers', src, depend = [''], CPPPATH = include_path)

list = os.listdir(cwd)
for item in list:
    if os.path.isfile(os.path.join(cwd, item, 'SConscript')):
        group = group + SConscript(os.path.join(item, 'SConscript'))

Return('group')